const schemas = {
  "addSsoserver": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "id": {
            "type": "number",
            "description": "授权服务器信息入库成功后的ID编号"
          }
        },
        "required": [
          "optResult",
          "id"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getSsoserverAuth": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "ssoservers": {
            "type": "array",
            "description": "单独登录授权服务器列表",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number",
                  "description": "授权服务器ID编号"
                },
                "authProtocol": {
                  "type": "string",
                  "description": "应用的鉴权协议，取值：\nOAuth2.0"
                },
                "serverName": {
                  "type": "string",
                  "description": "授权服务器名称"
                },
                "clientId": {
                  "type": "string",
                  "description": "客户端ID。用于鉴权流程中识别应用的唯一标识"
                },
                "clientSecret": {
                  "type": "string",
                  "description": "客户端密钥。"
                },
                "authUrl": {
                  "type": "string",
                  "description": "获取外部服务器授权的接口地址"
                },
                "tokenUrl": {
                  "type": "string",
                  "description": "获取授权服务器令牌的接口地址"
                },
                "userUrl": {
                  "type": "string",
                  "description": "获取授权服务器用户信息的接口地址"
                },
                "description": {
                  "type": "string",
                  "description": "描述"
                },
                "icon": {
                  "type": "string",
                  "description": "授权服务器图标"
                }
              },
              "required": [
                "id",
                "authProtocol",
                "serverName",
                "clientId",
                "clientSecret",
                "authUrl",
                "tokenUrl",
                "userUrl",
                "icon"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "ssoservers"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modSsoserverInfo": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getSsoserverInfo": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "string",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "ssoserver": {
            "type": "object",
            "description": "单点登录授权服务器详细信息结构体，SSOServer结构体参考6.4.1.5构体说明。"
          },
          "authRecords": {
            "type": "array",
            "description": "授权服务器鉴权记录列表。",
            "items": {
              "type": "object",
              "properties": {
                "clientId": {
                  "type": "string",
                  "description": "用户客户端ID"
                },
                "username": {
                  "type": "string",
                  "description": "用户名"
                },
                "operateTime": {
                  "type": "string",
                  "description": "操作时间"
                },
                "result": {
                  "type": "string",
                  "description": "操作结果"
                },
                "erroDec": {
                  "type": "string",
                  "description": "错误描述"
                }
              },
              "required": [
                "clientId",
                "username",
                "operateTime",
                "result"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "ssoserver",
          "authRecords"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteSsoserver": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modSsoserverAuth": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "ssoclientLogin": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "redirectUri": {
            "type": "string",
            "description": "重定向登录Uri"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "ssoclientAuth": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "ssoclientLogout": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "redirectUri": {
            "type": "string",
            "description": "重定向登录Uri"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
